package com.example.lib_base.param

/**
 * 预下单的参数  给每一个字段一个初始化的值  那么创建对象时，就可以不用给对象值
 */
data class PPreOrder(
    val attrValueId: Int = 0,
    val bargainId: Int = 0,
    val combinationId: Int = 0,
    var orderDetails: List<OrderDetail> = emptyList(),//要买的商品列表  可能有多个可能有一个   多个：循环列表，将选中的id 存到里面来
    val orderNo: String = "",
    val pinkId: Int = 0,
    var preOrderType: String = "",//预下单方式  声明是在哪个界面买的   详情  购物车  订单
    val productId: Int = 0,
    val productNum: Int = 0,
    val seckillId: Int = 0,
    val shoppingCartId: Int = 0
)

data class OrderDetail(
    var attrValueId: Int = 0,
    val bargainId: Int = 0,
    val bargainUserId: Int = 0,
    val combinationId: Int = 0,
    val orderDetails: List<Any> = emptyList(),
    val orderNo: String = "",
    val pinkId: Int = 0,
    val preOrderType: String = "",
    var productId: Int = 0,
    var productNum: Int = 0,
    val seckillId: Int = 0,
    var shoppingCartId: Int = 0
)